package com.xx.rpc.core.remoting.net.params;

/**
 * 心跳类
 *
 * @author hanxiyue
 */
public final class Beat {

    /**
     * 间隔
     */
    public static final int BEAT_INTERVAL = 30;

    /**
     * 心跳标识、用作请求标识
     */
    public static final String BEAT_ID = "BEAT_DETECTION";

    /**
     * rpc内部请求对象
     */
    public static XxRpcRequest BEAT_PING;

    static {//初始化请求对象、以及请求的ID
        BEAT_PING = new XxRpcRequest() {
        };
        BEAT_PING.setRequestId(BEAT_ID);
    }
}
